﻿@model LawProject.Models.ListBanTin

@{
    ViewBag.Title = "ChiTietLinhVuc";
    Layout = "~/Views/Shared/AdminLayout.cshtml";
}
<style>
    .title
    {
        color:Green;
        font-size:large;
    }
    .link_menu
    {
        text-decoration:none;
        font-size:large;
        color:Blue;
    }
    .link_menu:visited
    {
        text-decoration:none;
        font-size:large;
        color:Blue;
    }
    .div_panel
    {
        padding:5px;
        background-color:White;
    }
    .div_panel:hover
    {
        padding:5px;
        background-color:Olive;
    }
    .context_link
    {
        color:Black;
        font-size:large;
        text-decoration:underline;
    }
    .context_link:visited
    {
        color:Black;
        font-size:large;
        text-decoration:underline;
    }
    .context_link:hover
    {
        color:Red;
        font-size:large;
        text-decoration:underline;
    }
</style>
<h2>@Model.TenLinhVuc</h2>
<div style="height:auto; overflow:hidden;">
@foreach (var item in Model.ListData)
{
    <div style="position:relative; float:none; border-bottom: 1px solid red; overflow:hidden;">
    <div style="width:30px; float:left; position:relative; padding:5px;">
    @Html.ActionLink("Xóa", "BanTinDelete", new { mabt = item.MaBanTin }, new { @class = "context_link" })
    </div>
    <div style="float:left; position:relative;" class="div_panel">@Html.ActionLink(item.Title, "ChiTietBanTin", new { mabt = item.MaBanTin }, new { @class = "link_menu" })
    </div>
    </div>
}
</div>
<div style="width:80px; position:relative;">
    @Html.ActionLink("Tạo mới", "BanTinCreate", new { malv = Model.MaLinhVuc }, new { @class = "context_link" })
</div>
